package com.gitee.wsl.android.ui.base

import android.graphics.RectF
import com.gitee.wsl.common.ui.base.Padding
import com.gitee.wsl.mathematics.geometry.shape.Rectangle

val Rectangle.innerRect: RectF get() = RectF(left,top, right, bottom)

fun Padding.paddingRect(baseRectangle: Rectangle): RectF {
    return RectF(baseRectangle.left+left,baseRectangle.top+top,baseRectangle.right+right,baseRectangle.bottom+bottom)
}